package cn.fenqing.gof.observer;

public class ToStringObserver<T> extends Observer<T> {

    public ToStringObserver(T t) {
        observables = t;
    }

    @Override
    public void update() {
        System.out.println("发生了变化，打印toString" + observables);
    }
}
